//
//  YJCLeftTableViewCell.m
//  xiangzhe
//
//  Created by lyt on 16/11/10.
//  Copyright © 2016年 com.dazhebao. All rights reserved.
//

#import "YJCLeftTableViewCell.h"


@interface YJCLeftTableViewCell ()

@end

@implementation YJCLeftTableViewCell

- (void)awakeFromNib {
    [super awakeFromNib];
    
}
- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier{
    if (self = [super initWithStyle:style reuseIdentifier:reuseIdentifier]) {
    
    self.iconView = [[UIImageView alloc] init];
    [self.contentView addSubview:self.iconView];
    [self.iconView mas_makeConstraints:^(MASConstraintMaker *make) {
        make.left.equalTo(self.contentView).offset(10);
        make.centerY.equalTo(self.contentView.mas_centerY);
    }];
    
    self.nameLable = [[UILabel alloc] init];
    self.nameLable.font = [UIFont systemFontOfSize:15];
    self.nameLable.textAlignment = NSTextAlignmentCenter;
    self.nameLable.textColor = [UIColor whiteColor];
    [self.contentView addSubview:self.nameLable];
    [self.nameLable mas_makeConstraints:^(MASConstraintMaker *make) {
        make.left.equalTo(self.iconView.mas_right).offset(5);
        make.centerY.equalTo(self.contentView.mas_centerY);
        make.width.mas_equalTo(100);
    }];
    
    self.picView = [[UIImageView alloc] init];
    [self.contentView addSubview:self.picView];
    [self.picView mas_makeConstraints:^(MASConstraintMaker *make) {
        make.left.equalTo(self.nameLable.mas_right).offset(20);
        make.centerY.equalTo(self.contentView.mas_centerY);
    }];
    }
    return self;
}


- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];
    
    // Configure the view for the selected state
}

@end
